import socket
# 创建套接字
u_client=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)

while True:
    data=input("请输入你要发送的消息:")
    u_client.sendto(data.encode('utf-8'),('192.168.0.101',8803))
    data_from_server,addr=u_client.recvfrom(1024)
    print("server-->client:"+data_from_server.decode('utf-8'))
# u_client.close()